package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IWgtsFansListActivityModel;
import com.wgts.wgts.mvp.model.imp.WgtsFansListActivityModel;
import com.wgts.wgts.mvp.presenter.IWgtsFansListActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.WgtsFansListActivityPresenter;
import com.wgts.wgts.mvp.view.IWgtsFansListActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class WgtsFansListActivityModule {


    private IWgtsFansListActivityView view;

    public WgtsFansListActivityModule(IWgtsFansListActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public  IWgtsFansListActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IWgtsFansListActivityModel provideModel(NetService netService){
        return new WgtsFansListActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IWgtsFansListActivityPresenter providePresenter(IWgtsFansListActivityView view, IWgtsFansListActivityModel model){
        return new WgtsFansListActivityPresenter(view, model);
    }
}
